﻿//==============================================================================  
//Copyright (C) 2012-2015 9UN.ORG. All rights reserved. 
//GUID：46172595-6b69-4526-b9da-426d663f5b05
//CLR Version: 4.0.30319.18033
//Code Author：Kevin Wang
//Contact：Email(Admin@9un.org),QQ(265382 or 74344)
//Filename：DoubleWindowBase
//Namespace：RuanRang.Media.Core
//Functions：DoubleWindowBase  
//Created by Kevin Wang at 2013/2/2 23:05:09 http://blog.9un.org
//============================================================================== 

#region Usings

using System;
using System.Runtime.Serialization;

#endregion

namespace RuanRang.Media.Core
{
    /// <summary>
    /// Exception represents an error when using media library.
    /// </summary>
    [Serializable]
    public class MediaPlayerException : ApplicationException
    {
        /// <summary>
        /// Default constructor.
        /// </summary>
        public MediaPlayerException()
        {
        }

        /// <summary>
        /// Creates MediaPlayerException instance with specified message.
        /// </summary>
        /// <param name="message">Message of exception</param>
        public MediaPlayerException(string message)
            : base(message)
        {
        }

        /// <summary>
        /// Creates MediaPlayerException instance with specified message.
        /// </summary>
        /// <param name="message">Message of exception</param>
        /// <param name="inner">Inner exception.</param>
        public MediaPlayerException(string message, Exception inner)
            : base(message, inner)
        {
        }

        /// <summary>
        /// Constructor used during serialization.
        /// </summary>
        /// <param name="info"><see cref="SerializationInfo"/> instance.</param>
        /// <param name="context"><see cref="StreamingContext"/> instance.</param>
        public MediaPlayerException(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
        }
    }
}